﻿@model IEnumerable<demo86.Models.Result>

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Get IT!</title>
    <link href="~/images/like.ico" rel="shortcut icon" />
    <link href="css/style.css" rel="stylesheet" />
    <link href="css/bootstrap.css" rel="stylesheet" />
    <link href="css/dataTables.bootstrap.css" rel="stylesheet" />
    <link href="css/jquery.dataTables.min.css" rel="stylesheet" />
    <script src="scripts/jquery-1.10.2.js" type="text/javascript"></script>
    <script src="~/scripts/custom-own.js"></script>
    <script src="scripts/jquery.datatables.min.js"></script>
    <script src="scripts/bootstrap.js"></script>
    <script src="scripts/datatables.bootstrap.js"></script>
</head>
<body>
    @*@ViewBag.ldy
    <div>
        @using (Html.BeginForm("Index", "Result", FormMethod.Post))
        {
            <p>
                @ViewBag.im
                输入网址：@Html.TextBox("Search" )
                <input type="submit" value="Search" />
            </p>
        }
    </div>*@
    <header class="page-header" style="border-color:transparent;">
        <div id="header" class="header_div text-center white-font">
            有新的网站加入！
        </div>
        <div style="text-align:right;margin-right:20px;">
            <a class="white-font" id="weibo">微博</a>&nbsp;<b class="white-font">/</b>&nbsp;<a class="white-font" id="about">关于</a>
        </div>
        <div>
            <img src="images/bg.jpg" class="img_banner" />
        </div>
        <div style="text-align:center;">
            <img src="images/logo.png" />
        </div>

        @using (Html.BeginForm("Index", "Result", FormMethod.Post)) { 
        <div class="row" style="margin-top:20px">
            <div class="col-md-6 col-md-offset-3">
                <div style="text-align:center;">
                    <div class="input-group">
                    @Html.TextBox("Search",null,new { @class="form-control search",placeholder="请输入网址或校名"})
                        <div class="input-group-btn">
                            <button id="actionbtn" type="submit" class="btn btn-default" tabindex="-1">
                                解析
                            </button>
                            @*<button type="button" class="btn btn-default  dropdown-toggle" data-toggle="dropdown" tabindex="-1">
                                <span class="caret"></span>
                                <span class="sr-only"></span>
                            </button>
                            <ul class="dropdown-menu pull-right">
                                <li><a id="link-search">本地搜索</a></li>
                            </ul>*@
                        </div><!-- /btn-group -->
                    </div><!--input-group-->
                </div>
            </div>
        </div>
        }
    </header>
    <content class="content">
        <form name="form">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title text-center">Here is the Result</h3>
                </div>
                <div id="tablediv" class="panel-body">
                    <table class="table table-striped table-bordered text-center table-hover datatable" id="myTable">
                        <thead>
                            <tr>
                                <th type="checkbox" class="text-center col-lg-1" id="checkAll">
                                    <button id="myCheckAll" type="button" class="btn btn-default">全选</button>
                                </th>
                                <th class="text-center col-lg-5">标题</th>
                                <th class="text-center col-lg-3">类型</th>
                                <th class="text-center col-lg-1">日期</th>
                                <th class="text-center col-lg-2">操作</th>
                            </tr>
                        </thead>
                        <!--</table>-->
                        <!--<table class="table table-striped table-bordered text-center table-hover datatable">-->
                        <tbody id="tb">
                            @if (ViewBag.s1 == "2")
                            {
                                int i = 0;
                                foreach (var News in Model)
                                {
                                    i++;
                                    <tr id="tr1" name="tr">
                                        <td class="text-center col-lg-1"><input type="checkbox" name="myCheck"></td>
                                        @*<td class="text-center col-lg-5">@News.title</td>*@
                                        @*<td>@Html.ActionLink(News.title,"OpenLink",new { id= News.url },new { target = "_blank" })</td>*@ 
                                        @*<td>@Url.Action(News.title,News.url)</td>*@
                                        <td><a href="@News.url" target="_blank">@News.title</a></td>
                                        <td class="text-center col-lg-3">@News.Type  </td>
                                        <td class="text-center col-lg-1">@News.date</td>
                                        <td class="text-center col-lg-2">
                                            <button type="button" onclick="clickShowAndHide(this,'@News.content','_@i')" class="btn btn-" id="Btn_@i" data-toggle="collapse" data-target="#collapse_@i">
                                                正文内容
                                            </button>
                                        </td>
                                    </tr>
                                }
                            }
                        </tbody>

                    </table>
                </div>
            </div>
        </form>
    </content>
    <footer style="background-color: #efefef ;width: 100%;padding-top:200px;" class="footer">
        <div class="footer_div" style="padding-top:10px;">
            <h4 class="white-font text-center">Copyright Nintendo</h4>
        </div>
    </footer>
    </body>

</html>
